package com.legal.enums;

/**
 * 注册相关的枚举信息
 * @author xiaopeng
 * @version 1.0
 */
public enum RegisterExceptionMsgEnums {
    // 注册相关的枚举码
    REGISTER_ERROR(415, "操作过于频繁，请稍后再试！"),
    REGISTER_EXCEED_LIMIT_EQUIPMENT (416,"该设备尝试注册次数过多，请稍后再试！"),
    REGISTER_EXCEED_LIMIT_PHONE_NUMBER(417,"该手机号注册尝试次数过多，请稍后再试！"),


    PHONE_NUMBER_EXIST(411,"该手机号已经被注册" ),
    USERNAME_NUMBER_EXIST(413,"该用户名已经被注册" );

    private Integer code;
    private String msg;

    RegisterExceptionMsgEnums(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
    public Integer getCode() {
        return code;
    }
    public String getMsg() {
        return msg;
    }
}
